<?php
/**
 * 
 * @author Paolo Bertuzzo
 *
 */
namespace Utilities\Math;

class Vat
{
    
    /**
     * 
     * @param double $gross
     * @param double $vat
     * @return number
     */
    public static function calculateVat($gross, $vat)
    {
        $nett = $gross / (1 + $vat);
        
        return round($gross - $nett, 2);
    }
        
}

?>